package com.wanxi.dangdang.service;

import com.github.pagehelper.PageInfo;
import com.wanxi.dangdang.model.pojo.BUser;
import com.wanxi.dangdang.model.vo.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;

public interface UserService {
   BUser findById(Long id);
   PageInfo<BUser> findPage(BUserPageVo bUserPageVo);
   void repassword(Long id);
   Long add(BUserAddVo bUserAddVo);
   void updateById(BUserUpdateVo bUserUpdateVo);
   void deleteById(Long id);
   HashMap<String,String> loginByCode(LoginVo loginVo);
   HashMap<String,String> loginByPass(LoginVo loginVo);
   void getPhoneCode(String phone)throws Exception;
   Map<String,String> getPictureCode() throws Exception;

   BUserCheckVo checkAccount(String account);
}
